package com.zecan.blog.vo.achives;

import com.zecan.blog.entity.Article;
import lombok.Data;

/**
 * @ClassName ArchivesVo
 * @Description
 * @date 2022/11/26 11:21
 * @Version 1.0
 */
@Data
public class ArchivesVo {

    String articleTitle;

    String articleCreateTime;

    Integer articleId;


    public static ArchivesVo convertArchivesVo(Article article) {
        ArchivesVo archivesVo = new ArchivesVo();
        archivesVo.articleId = article.getArticleId();
        archivesVo.articleTitle = article.getArticleTitle();
        archivesVo.articleCreateTime = article.getArticleCreateTime();
        return archivesVo;
    }


}
